import xxRequest from './service'
// 获取轮播图
export function getBanner() {
  return xxRequest.get('/banner',{type:2})
}
// 获取推荐歌曲
export function getRecommend(id) {
    return xxRequest.get("/playlist/detail",{id})
}
// 获取热门歌单
export function getPlaylist(cat,order="hot",limit=6,offset=0) {
  return xxRequest.get("/top/playlist",{
    order,cat,limit,offset
  })
}
// 获取推荐精品歌单 
export function getHighQualityList(cat="全部",limit=7,) {
  return xxRequest.get("/top/playlist/highquality",{
    cat,limit
  })
}

// 根据id 获取歌单数据
export function getPlayListDetail(id) {
  return xxRequest.get("/playlist/detail",{id})
}